Skip to content

Conversation

@poWer4aiX
Copy link
Contributor

@stuertz has provided a code fragment to provide an assert_matches assertion in the description of issue #80. There was no pull request yet, so I have included the code now into bash_unit and added the counterpart assert_not_matches as well. Tests have been added to tests/test_core.sh for both assertions. The documentation in README-adoc has been extended by the two new assertions, including the corresponding tests.

Many thanks to Jan for his initial contribution, this was a missing assertion I currently was looking for.

@stuertz
Copy link

stuertz commented Dec 27, 2021

Well done, thanks for the pull request and doing all the boilerplate ;-)

@poWer4aiX
Copy link
Contributor Author

Added a small cosmetic fix, renamed local variable expected in assert_not_matches to unexpected ;-)

@pgrange pgrange merged commit 2ebb920 into bash-unit:master Jan 1, 2022
@pgrange
Copy link
Member

pgrange commented Jan 1, 2022

Thanks @poWer4aiX excellent work.

@pgrange pgrange mentioned this pull request Jan 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants